/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package fy.oa;

import com.seeyon.client.CTPRestClient;
import com.seeyon.client.CTPServiceClientManager;

/**
 *
 * @author Administrator
 */
public class OARestClient {

    public static CTPRestClient getClient() {
        // 指定协议、IP和端口，获取ClientManager
        CTPServiceClientManager clientManager = CTPServiceClientManager
                .getInstance("http://10.112.0.171:80");

        // 取得REST动态客户机实例
        CTPRestClient client = clientManager.getRestClient();
        client.authenticate("fy_form_reader", "form_reader2015");
        return client;
    }
}
